package com.mason.forum.service;

import com.mason.forum.model.ArticleReply;
import com.mason.forum.model.vo.ArticleReplyVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-10-07
 * Time: 22:04
 */
public interface IArticleReplyService {

    /**
     * 回复帖子
     * @param articleReply 回复信息
     */
    @Transactional
    void replyArticle(ArticleReply articleReply);


    /**
     * 查找一个帖子的回复列表
     * @param articleId 帖子id
     * @return 返回帖子列表
     */
    List<ArticleReplyVO> selectRepliesById(Long articleId);





}
